package entity;

public class User {

	private Integer id; // id
	private String username; // 用户名
	private String userpassword; // 密码
	private Integer integral; // 积分
	private Integer falg; // 标记。1：管理员（admin） 2:普通（common）
	private String email; // 邮箱
	private String first; // 是否第一次登陸
	private String isCheck; // 是否挂机，默认true:挂机
	private long expireTime; // 到期时间
	
	
	public String isCheck() {
		return isCheck;
	}

	public void setCheck(String isCheck) {
		this.isCheck = isCheck;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public Integer getFalg() {
		return falg;
	}

	public void setFalg(Integer falg) {
		this.falg = falg;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirst() {
		return first;
	}

	public void setFirst(String first) {
		this.first = first;
	}

	 

	public long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}

	public User(Integer id, String username, String userpassword,
			Integer integral, Integer falg, String email, String first,
			String isCheck) {
		super();
		this.id = id;
		this.username = username;
		this.userpassword = userpassword;
		this.integral = integral;
		this.falg = falg;
		this.email = email;
		this.first = first;
		this.isCheck = isCheck;
	}

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", userpassword="
				+ userpassword + ", integral=" + integral + ", falg=" + falg
				+ ", email=" + email + ", first=" + first + ", isCheck="
				+ isCheck + "]";
	}
	

}
